import request from '@/utils/request'

export function listchargeDetail(query) {
  return request({
    url: '/chargeDetail/list',
    method: 'get',
    params: query
  })
}

export function createchargeDetail(data) {
  return request({
    url: '/chargeDetail/create',
    method: 'post',
    data
  })
}

export function readchargeDetail(data) {
  return request({
    url: '/chargeDetail/get/' + data.ftaskno,
    method: 'get'
  })
}

export function updatechargeDetail(data) {
  return request({
    url: '/chargeDetail/update',
    method: 'post',
    data
  })
}

export function deletechargeDetail(data) {
  return request({
    url: '/chargeDetail/delete/' + data.ftaskno,
    method: 'delete'
  })
}
